#include "account.h"

Account::Account() {
    qDebug()<<"Account::Account called.";
    username=nullptr;
    password=nullptr;
    isAdmin=false;
    qDebug()<<"Account::Account returned.";
}

void Account::setUsername(QString *usernm) {
    qDebug()<<"Account::setUsername called.";
    if(username!=nullptr) delete username;
    username=usernm;
    qDebug()<<"Account::setUsername returned.";
}

void Account::setPassword(QString *passwd) {
    qDebug()<<"Account::setPassword called.";
    if(password!=nullptr) delete password;
    password=passwd;
    qDebug()<<"Account::setPassword returned.";
}
